package cn.iocoder.yudao.module.famous.doctor.controller.admin.treatmentuser.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import javax.validation.constraints.*;

/**
 * 就诊人 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class TreatmentUserBaseVO {

    @Schema(description = "真实姓名",requiredMode = Schema.RequiredMode.REQUIRED,example = "李四")
    @Length(min = 2, max = 4, message = "真实姓名长度限制为 2-4 位")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5]{2,4}$", message = "真实姓名必须都是汉字")
    private String name;

    @Schema(description = "性别")
    private Integer sex;

    @Schema(description = "性别")
    private Integer age ;

    @Schema(description = "身份证号",requiredMode = Schema.RequiredMode.REQUIRED)
    @Length(min = 0, max = 18, message = "身份证号长度限制为 0-18 位")
    private String identityCard;

    @Schema(description = "身高")
    private Double height;

    @Schema(description = "体重")
    private Double weight;

    @Schema(description = "职业")
    private String occupation;

    @Schema(description = "亲属区分")
    private String label;

}
